import request from '@/utils/request.js';

// org
export function orgGetService(search, currentPage, pageSize) {
    return request.get('/org', { params: { search, currentPage, pageSize } });
}

export function orgCreateService(createData) {
    return request.post('/org', createData);
}

export function orgUpdateService(updateData) {
    return request.put('/org', updateData);
}

export function orgDeleteService(orgId) {
    return request.delete('/org/' + orgId);
}

// house
export function houseGetService(search, currentPage, pageSize, orgId) {
    return request.get('/house', { params: { search, currentPage, pageSize, orgId } });
}

export function houseCreateService(createData) {
    return request.post('/house', createData);
}

export function houseUpdateService(updateData) {
    return request.put('/house', updateData);
}

export function houseDeleteService(houseId) {
    return request.delete('/house/' + houseId);
}

export function houseGetTypeService() {
    return request.get('/house/type');
}

export function houseGetStatusService() {
    return request.get('/house/status');
}

